package net.javoft.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Widget;

public class HelloWorld extends Widget{
	interface MyUiBinder extends UiBinder<DivElement, HelloWorld>{};
	private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
	interface MyStyle extends CssResource{
		String redBox();
	}
	
	@UiField MyStyle style;
	
	public HelloWorld (){
		DivElement div = uiBinder.createAndBindUi(this);
		div.addClassName(style.redBox());
		this.setElement(div);
	}
}